<template>
  <div class="position">
    <span class="iconfont position__icon">&#xe7f1;</span>
    北京理工大学国防科技园2号楼10层
    <span class="iconfont position__bell">&#xe7c4;</span>
  </div>
  <div class="search">
    <span class="iconfont">&#xe660;</span>
    <span class="search__text">山姆会员商店优惠商品</span>
  </div>
  <div class="banner">
    <img class="banner__img" src="http://www.dell-lee.com/imgs/vue3/banner.jpg" alt="">
  </div>
  <div class="icons">
    <div class="icons__item">
      <img src="http://www.dell-lee.com/imgs/vue3/超市.png" alt="" class="icons__item__img">
      <p class="icons__item__desc">超市便利</p>
    </div>
    <div class="icons__item">
      <img src="http://www.dell-lee.com/imgs/vue3/菜市场.png" alt="" class="icons__item__img">
      <p class="icons__item__desc">菜市场</p>
    </div>
    <div class="icons__item">
      <img src="http://www.dell-lee.com/imgs/vue3/水果店.png" alt="" class="icons__item__img">
      <p class="icons__item__desc">水果店</p>
    </div>
    <div class="icons__item">
      <img src="http://www.dell-lee.com/imgs/vue3/鲜花.png" alt="" class="icons__item__img">
      <p class="icons__item__desc">鲜花绿植</p>
    </div>
    <div class="icons__item">
      <img src="http://www.dell-lee.com/imgs/vue3/超市.png" alt="" class="icons__item__img">
      <p class="icons__item__desc">医药健康</p>
    </div>
    <div class="icons__item">
      <img src="http://www.dell-lee.com/imgs/vue3/家居.png" alt="" class="icons__item__img">
      <p class="icons__item__desc">家居时尚</p>
    </div>
    <div class="icons__item">
      <img src="http://www.dell-lee.com/imgs/vue3/蛋糕.png" alt="" class="icons__item__img">
      <p class="icons__item__desc">烘焙蛋糕</p>
    </div>
    <div class="icons__item">
      <img src="http://www.dell-lee.com/imgs/vue3/签到.png" alt="" class="icons__item__img">
      <p class="icons__item__desc">签到</p>
    </div>
    <div class="icons__item">
      <img src="http://www.dell-lee.com/imgs/vue3/超市.png" alt="" class="icons__item__img">
      <p class="icons__item__desc">大牌免运</p>
    </div>
    <div class="icons__item">
      <img src="http://www.dell-lee.com/imgs/vue3/红包.png" alt="" class="icons__item__img">
      <p class="icons__item__desc">红包套餐</p>
    </div>
  </div>
  <div class="gap"></div>
</template>

<script setup>
import { } from "vue"
</script>

<style lang="scss" scoped>
@import '../../css/variables.scss';
@import '../../css/mixins.scss';

.position {
  position: relative;
  padding: 0.16rem 0.24rem 0.16rem 0;
  font-size: 0.16rem;
  line-height: 0.22rem;
  @include ellipses;
  color: $content-fontColor;

  &__icon {
    position: relative;
    top: 0.01rem;
    font-size: 0.2rem !important;
  }

  &__bell {
    position: absolute;
    top: 0.17rem;
    right: 0;
    font-size: 0.2rem !important;
  }
}

.search {
  margin-bottom: 0.12rem;
  position: relative;
  height: 0.32rem;
  line-height: 0.32rem;
  background-color: $search-bgColor;
  color: $search-fontColor;
  border-radius: 0.16rem;
  font-size: 0.14rem;

  .iconfont {
    position: relative;
    top: 0.02rem;
    display: inline-block;
    padding: 0 0.04rem 0 0.16rem;
    font-size: 0.16rem;
  }

  &__text {
    display: inline-block;
    font-size: 0.14rem;
  }

}

.banner {
  height: 0;
  overflow: hidden;
  padding-bottom: 25.4%;

  &__img {
    width: 100%;
  }
}

.icons {
  display: flex;
  flex-wrap: wrap;
  margin-top: 0.16rem;

  &__item {
    width: 20%;

    &__img {
      display: block;
      width: 0.4rem;
      height: 0.4rem;
      margin: 0 auto;
    }

    &__desc {
      margin: 0.06rem 0;
      text-align: center;
      color: $content-fontColor;
    }
  }
}

.gap {
  margin: 0 -0.18rem;
  height: 0.1rem;
  background-color: $content-bgColor;
}
</style>
